#include "gtkcssparserprivate.h"
#include "gtkcsssectionprivate.h"
#include "gtkcssselectorprivate.h"
+#include "gtkcssshorthandpropertyprivate.h"
#include "gtksymboliccolor.h"
#include "gtkstyleprovider.h"
#include "gtkstylecontextprivate.h"
ruleset->set_styles = _gtk_bitmask_new ();
}
- if (_gtk_style_property_is_shorthand (prop))
+ if (GTK_IS_CSS_SHORTHAND_PROPERTY (prop))
{
GParameter *parameters;
guint i, n_parameters;
#include "gtkanimationdescription.h"
#include "gtkgradient.h"
#include "gtkshadowprivate.h"
+#include "gtkcssshorthandpropertyprivate.h"
#include "gtkcsstypesprivate.h"
#include "gtkborderimageprivate.h"
else
g_return_if_fail (style_prop->pspec->value_type == value_type);
- if (_gtk_style_property_is_shorthand (style_prop))
+ if (GTK_IS_CSS_SHORTHAND_PROPERTY (style_prop))
{
GParameter *parameters;
guint i, n_parameters;
return &property->initial_value;
}
-gboolean
-_gtk_style_property_is_shorthand (const GtkStyleProperty *property)
-{
- g_return_val_if_fail (property != NULL, FALSE);
-
- return property->pack_func != NULL;
-}
-
GParameter *
_gtk_style_property_unpack (const GtkStyleProperty *property,
const GValue *value,
if (val)
_gtk_style_property_resolve (property, props, state, context, (GValue *) val, value);
- else if (_gtk_style_property_is_shorthand (property))
+ else if (GTK_IS_CSS_SHORTHAND_PROPERTY (property))
_gtk_style_property_pack (property, props, state, context, value);
else
_gtk_style_property_default_value (property, props, state, value);
node->print_func = print_func;
node->unset_func = unset_func;
- if (!_gtk_style_property_is_shorthand (node))
+ if (!GTK_IS_CSS_SHORTHAND_PROPERTY (node))
{
_gtk_style_property_generate_id (node);
const GValue * _gtk_style_property_get_initial_value
(const GtkStyleProperty *property);
-gboolean _gtk_style_property_is_shorthand (const GtkStyleProperty *property);
GParameter * _gtk_style_property_unpack (const GtkStyleProperty *property,
const GValue *value,
guint *n_params);